﻿/////////////////////////////////////////////////////////////////////
//
//	Map_FVG C# Class Library.
//
//	IDragDropEnabled
//	
//
//	
//	versione: 1.0
//	data: 01/12/2015
//
//
//	Cronologia delle versioni:
//
//	Versione 1.0 01/12/2015
//		versione originale
//
//////////////////////////////////////////////////////////////////////////
using System;

namespace Map_Fvg
{
    /// <summary>
    /// Provides an interface for controls that are handled
    /// by the DragDropHandler.  Attempting to use the DragDropHandler
    /// on a control that does not inherit this interface 
    /// will generate an Exception.
    /// </summary>
    public interface IDragDropEnabled
    {
        /// <summary>
        /// Indicates the control is dropping
        /// </summary>
        /// <param name="_successfull">true: drop is successfull | false: drop canceled</param>
        void DropComplete(bool _successfull);

        /// <summary>
        /// Tells the control to store its Location (Left, Top)
        /// </summary>
        void StoreLocation();

        /// <summary>
        /// Gets / Sets if the control is being dragged
        /// </summary>
        bool IsDragging { get; set; }

        void completedDrag(int X, int Y);
    }
}
